<template>
  <div>
    <el-container>
      <el-header
        height="90px"
        class="header-container"
      >
        <el-row
          type="flex"
          align="middle"
          style="height: 100%"
        >
          <el-col
            :span="10"
            :push="1"
          >
            <img
              src="https://stavebox.oss-cn-beijing.aliyuncs.com/SomeLabel/logo.png"
              alt=""
              height="90"
              class="logo-bg"
            >
          </el-col>
          <el-col :span="14">
            <ul>
              <li>
                <nuxt-link to="/">首页</nuxt-link>
              </li>
              <li>
                <nuxt-link to="/essay">攻略</nuxt-link>
              </li>
              <li>
                <nuxt-link to="/food">食谱</nuxt-link>
              </li>
              <li>
                <a
                  href="https://manage.fireleaves.cn/"
                  target="view_window"
                >后台管理</a>
              </li>
              <li>
                <a
                  href="http://www.jihuangbaike.com/"
                  target="view_window"
                >饥荒百科全书</a>
              </li>
              <li>
                <el-radio-group
                  v-model="radio"
                  size="mini"
                >
                  <el-radio-button label="DS" />
                  <el-radio-button label="ROG" />
                  <el-radio-button label="DST" />
                  <el-radio-button label="SW" />
                  <el-radio-button label="HAMLET" />
                </el-radio-group>
              </li>
            </ul>
          </el-col>
        </el-row>
      </el-header>
      <el-main class="main-sty">
        <nuxt />
      </el-main>
      <el-footer style="background-color: #151515">
        <el-row
          type="flex"
          justify="center"
          align="middle"
          style="height: 100%"
        >
          <el-col>
            <p class="footer">All rights reserved. © Space. 2018 鄂ICP备17013252号</p>
          </el-col>
        </el-row>
      </el-footer>
    </el-container>
  </div>
</template>

<script>
export default {
  data() {
    return {
      activeIndex: '2',
      radio: this.$store.state.version,
    }
  },
  watch: {
    radio(newValue) {
      this.changeVersion(newValue)
    },
  },
}
</script>

<style lang="scss">
html {
  font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI',
    Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  word-spacing: 1px;
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
}

*,
*:before,
*:after {
  box-sizing: border-box;
  margin: 0;
}

.button--green {
  display: inline-block;
  border-radius: 4px;
  border: 1px solid #3b8070;
  color: #3b8070;
  text-decoration: none;
  padding: 10px 30px;
}

.button--green:hover {
  color: #fff;
  background-color: #3b8070;
}

.button--grey {
  display: inline-block;
  border-radius: 4px;
  border: 1px solid #35495e;
  color: #35495e;
  text-decoration: none;
  padding: 10px 30px;
  margin-left: 15px;
}

.button--grey:hover {
  color: #fff;
  background-color: #35495e;
}
</style>
<style lang="scss" scoped>
@import '@/assets/golbal.scss';
.header-container {
  background: linear-gradient(80deg, #510fa8 0, #320fa8 100%);
}
.el-menu-demo {
  z-index: 99;
  padding: 0 36px 0 36px;
  width: 100%;
}

.main-sty {
  padding: 0;
}
ul {
  display: flex;
  flex-flow: row nowrap;
  justify-content: flex-start;
  align-items: center;
}
ul li {
  margin-left: 36px;
  list-style: none;
  font-size: 16px;
  color: #fff;
  cursor: pointer;
  a {
    color: #fff;
    text-decoration: none;
  }
}
.footer {
  color: $common-font;
  text-align: center;
}
.logo-bg {
  background-color: #510fa8;
}
</style>
